<template>
	<view class="marry-container">
		<view class="section01">
			<view>容易查</view>
			<view class="topic"></view>
			<view class="banner"></view>
		</view>
		<keyword :userId="userId" :productId="4" btnbg="#FB5288" textbg="#333333">
			<template v-slot:head>
				<view style="text-align: center;">
					<image src="@/static/images/other/marry/bgcx.png" id="head_img"></image>
				</view>
			</template>
			<template v-slot:tips>
				<view></view>
			</template>
		</keyword>

		<!-- 	<view class="section02">
			<image src="@/static/images/other/marry/bgcx.png" class="title"></image>
			<view class="form">
				<view class="form-item">
					<view class="icon"></view>
					<input type="text" v-model="form.mobile" placeholder="请输入本人手机号" placeholder-class="placeholder">
				</view>
				<view class="form-item code">
					<view class="icon"></view>
					<input type="text" v-model="form.code" placeholder="请输入验证码" placeholder-class="placeholder">
					<view class="code-btn" @click="sendCode">{{codeText}}</view>
				</view>
			</view>
			<view class="line" style="margin: 4px 0 0;">
				<checkbox-group @change="form.agree = !form.agree" style="text-align: center;margin: 0;">
					<checkbox :checked="form.agree" style="transform: scale(0.8)">
						已阅读同意
						<span @click="serveAgreeVisible=true" style="color: #EF619A;">
							《服务协议》
						</span>
					</checkbox>
				</checkbox-group>
			</view>
			<view class="btn" @click="submit">立即查询</view>
			<view style="margin: 4px 0; ">
				<view @click="$tab.navigateTo('/pages/mar')" style="float: left;margin-left: 20px;">示例报告</view>
				<view @click="$tab.navigateTo('/pages/record')"
					style="float: right;display: inline-block;margin-right: 20px;">历史查询</view>
			</view>
		</view> -->

		<view class="section03">
			<image src="@/static/images/other/marry/cxxz.png" class="title"></image>
			<view class="content">
				<view class="content-box">
					<view class="top">
						<view class="avatar">
							<image src="/static/images/other/marry/avatar.jpg" mode="widthFix" class="img"></image>
						</view>
						<view class="title">可以查询他人婚姻吗</view>
					</view>

					<view class="line"></view>
					<view class="bottom">
						<view class="text">
							查询只针对本人，需要被查询人同意授权且人脸识别验证本人
						</view>
						<view class="person-box">
							<image src="@/static/images/other/marry/avatar.jpg" class="person" />
							<image src="@/static/images/other/marry/2.png" class="person" />
							<image src="@/static/images/other/marry/avatar.jpg" class="person" />
						</view>
					</view>
				</view>

				<view class="content-box">
					<view class="top">
						<view class="avatar">
							<image src="/static/images/other/marry/avatar.jpg" mode="widthFix" class="img"></image>
						</view>
						<view class="title">我的案件销案了为什么还在</view>
					</view>

					<view class="line"></view>

					<view class="bottom">
						<view class="text">
							联系人工客服消除案件即可
						</view>
						<view class="person-box">
							<image src="@/static/images/other/marry/avatar.jpg" class="person" />
							<image src="@/static/images/other/marry/2.png" class="person" />
							<image src="@/static/images/other/marry/avatar.jpg" class="person" />
							<view class="person"></view>
						</view>
					</view>
				</view>
			</view>
		</view>

	</view>
</template>

<script>
	import keyword from '@/components/keyword.vue'

	export default {
		components: {
			keyword
		},
		data() {
			return {
				userId: undefined,
				remark: undefined
			}
		},
		onLoad(event) {
			// 若不来自推荐，算作管理员的
			this.userId = event.ui ? event.ui : 1
			this.remark = event.ui ? null : '无推送'
		}
	}
</script>

<style scoped lang="scss">
	.marry-container {
		width: 100vw;
		background: url("@/static/images/other/marry/marry-bg.png") no-repeat 0 0/ cover;
		padding: 44rpx 32rpx;
		box-sizing: border-box;
		font-family: PingFang SC, PingFang SC;

		.section01 {
			margin-top: 20rpx;
			font-size: 36rpx;
			color: #fff;
			text-align: center;

			.topic {
				width: 100%;
				height: 170rpx;
				margin-top: 30rpx;
				background: url("@/static/images/other/marry/topic.png") no-repeat center center / contain;
			}

			.banner {
				height: 620rpx;
				width: 100%;
				background: url("@/static/images/other/marry/banner.png") no-repeat center center / contain;
				margin-top: 48rpx;
			}
		}

		// .section02 {
		// 	height: 600rpx;
		// 	width: 100%;
		// 	border-radius: 24rpx;
		// 	box-shadow: 0px 4px 4px 0px rgba(26, 43, 75, 0.06);
		// 	background-color: #fff;
		// 	padding: 48rpx;
		// 	box-sizing: border-box;
		// 	text-align: center;

		// 	.title {
		// 		width: 270rpx;
		// 		height: 50rpx;
		// 	}

		// 	.form {
		// 		margin-top: 54rpx;

		// 		.form-item {
		// 			height: 80rpx;
		// 			width: 100%;
		// 			border: 1px solid #DADADA;
		// 			border-radius: 16rpx;
		// 			display: flex;
		// 			align-items: center;
		// 			padding: 0 20rpx;
		// 			box-sizing: border-box;

		// 			.icon {
		// 				width: 40rpx;
		// 				height: 40rpx;
		// 				background: url("@/static/images/other/marry/phone.png") no-repeat center center / contain;
		// 			}

		// 			input {
		// 				text-align: left;
		// 				margin-left: 10rpx;
		// 				font-family: PingFang SC, PingFang SC;
		// 				font-size: 28rpx;
		// 				color: #292E33;
		// 			}

		// 			.placeholder {
		// 				text-align: left;
		// 				margin-left: 10rpx;
		// 				font-family: PingFang SC, PingFang SC;
		// 				font-size: 28rpx;
		// 				color: #C8C8C8;
		// 			}

		// 		}

		// 		.code {
		// 			margin-top: 40rpx;

		// 			.icon {
		// 				background: url("@/static/images/other/marry/code.png") no-repeat center center / contain;
		// 			}

		// 			.code-btn {
		// 				width: max-content;
		// 				background-color: #FFE4F3;
		// 				color: #EF619A;
		// 				margin-left: auto;
		// 			}

		// 		}
		// 	}

		// 	.btn {
		// 		height: 88rpx;
		// 		// margin-top: 24rpx;
		// 		background-color: #FB5288;
		// 		border-radius: 4rpx;
		// 		display: flex;
		// 		justify-content: center;
		// 		align-items: center;
		// 		font-weight: 600;
		// 		font-size: 32rpx;
		// 		color: #fff;
		// 		font-family: PingFang SC, PingFang SC;
		// 	}
		// }

		.section03 {
			//height: 632rpx;
			width: 100%;
			border-radius: 24rpx;
			box-shadow: 0px 4px 4px 0px rgba(26, 43, 75, 0.06);
			background-color: #fff;
			padding: 48rpx;
			box-sizing: border-box;
			margin-top: 24rpx;
			text-align: center;

			.title {
				width: 270rpx;
				height: 50rpx;
			}

			.content {
				.content-box {
					padding: 32rpx;
					box-sizing: border-box;
					background-color: #F3F2F6;
					border-radius: 16rpx;
					text-align: left;
					margin-top: 32rpx;
					border-image: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.4)) 2 2;
					box-shadow: 0px 4px 4px 0px rgba(26, 43, 75, 0.06);

					.top {
						display: flex;
						align-items: center;

						.avatar {
							width: 72rpx;
							height: 72rpx;
							border-radius: 50%;

							.img {
								width: 100%;
								height: 100%;
								border-radius: 50%;
							}
						}

						.title {
							margin-left: 20rpx;
							//border: 1px solid red;
							color: #292E33;
							width: 600rpx;
							font-family: PingFang SC, PingFang SC;
							font-weight: 600;
							font-size: 32rpx;
						}
					}

					.line {
						// margin: 32rpx 0 26rpx;
						margin: 10rpx;
						width: 558rpx;
						height: 2px;
						background-color: #F0F0F5;
					}

					.bottom {
						.text {
							color: #292E33;
							font-family: PingFang SC, PingFang SC;
							font-size: 28rpx;
							text-align: left;
							line-height: 48rpx;
							opacity: 0.6;
						}

						.person-box {
							display: flex;
							margin-top: 16rpx;

							.person {
								width: 40rpx;
								height: 40rpx;
								border-radius: 50%;
							}

							.person:nth-of-type(2) {
								transform: translateX(-10rpx);
							}

							.person:nth-of-type(3) {
								transform: translateX(-20rpx);
							}
						}
					}
				}
			}
		}
	}

	#head_img {
		margin: 10px auto;
		width: 270rpx;
		height: 50rpx;
	}
</style>